﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public interface IUserInfoService
    {
        Task<int> AddUserInfoAsync(string realName,DateTime birthday,int gender,string identityCard,string phone,string email,string address,int userId);
        Task<int> EditUserInfoAsync(int id, string realName, DateTime birthday, int gender, string identityCard, string phone, string email, string address);
        Task<int> DeleteUserInfoAsync(int id);
        Task<List<UsersInfoDto>> QueryUserInfoAllAsync();
        Task<UsersInfoDto> QueryUserInfoByIdAsync(int id);
        Task<List<UsersInfoDto>> QueryUserInfoByNameAsync(string realName);
    }
}
